//
//  BaseMode.h
//  dataGathering
//
//  Created by apple on 14/12/22.
//  Copyright (c) 2014年 shuili. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <ArcGIS/ArcGIS.h>
@class BaseMode;
@protocol BaseModeEndDrawingDelegate <NSObject>

-(void)BaseMode :(BaseMode*)mode didFinishDrawing:(AGSGeometry*)geometry :(NSString*)type;

@end

@interface BaseMode : NSObject<AGSMapViewTouchDelegate>

@property(nonatomic, assign)AGSMapView* mapview;
@property(nonatomic, retain)AGSGraphicsLayer* myGraphicsLayer;
@property(nonatomic, retain)AGSSimpleFillSymbol *innerSymbol;
@property(nonatomic, retain)AGSMutablePolygon* myPolygon;
@property(nonatomic, retain)AGSMutablePolyline* myPolyline;
@property(nonatomic, retain)AGSMutablePoint* myPoint;
@property(nonatomic, retain)AGSGraphic *myGraphic;

@property (nonatomic, weak) id <BaseModeEndDrawingDelegate> delegate;

-(instancetype)initWithMapview :(AGSMapView*)mapview;
-(void)stop;

@end
